﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Wen.GrpcService.Entity;

/// <summary>
/// 
/// </summary>
public class SysUser
{
    /// <summary>
    /// 获得/设置 用户主键ID
    /// </summary>
    [Key]
    public long Id { get; set; }

    /// <summary>
    /// 获得/设置 系统登录用户名
    /// </summary>
    [Key]
    [DisplayName("登录名称")]
    public string? UserName { get; set; }

    /// <summary>
    /// 获得/设置 用户显示名称
    /// </summary>
    [DisplayName("显示名称")]
    public string? DisplayName { get; set; }

    /// <summary>
    /// 获得/设置 用户头像图标路径
    /// </summary>
    [DisplayName("用户头像")]
    public string? Icon { get; set; }

    /// <summary>
    /// 获取/设置 密码
    /// </summary>
    [DisplayName("密码")]
    public string? Password { get; set; }

    /// <summary>
    /// 获取/设置 密码盐
    /// </summary>
    [DisplayName("密码盐")]
    public string? PasswordSalt { get; set; }

    /// <summary>
    /// 获得/设置 说明
    /// </summary>
    [DisplayName("说明")]
    public string? Description { get; set; }
}